home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
random
< prev
next >
Wrap
Text File
|
2001-04-06
|
660b
|
16 lines
SYNOPSIS
int random(int n)
DESCRIPTION
Returns a number in the random range [0 .. n-1].
The random number generator is proven to deliver an equal distribution
of numbers over a big range, with no repetition of number sequences
for a long time. The downside of these (desirable) qualities is that
when generating numbers in a small range over short time, certain
numbers will appear far more often than others.
The only solution is the implementation of a special simul_efun which
takes special steps to implement an equal distribution over small
ranges and short times.